home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ MSO2K Excel 1.xpl < prev    next >
Text File  |  1999-09-11  |  1KB  |  50 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="2"
  3. "COUNT"="1"
  4. "UIPATH"="Program Options\Office 2000"
  5. "NAME"="Excel Undo"
  6. "VERSION"="1.01"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Undo Steps:"
  9. "DESCRIPTION 1"="You can configure here how many steps can be undone in Excel."
  10. "DESCRIPTION 2"="To restore the original value, clear the field."
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  14.  
  15.  
  16. sV1="HKCU\Software\Microsoft\Office\9.0\Excel\Options\UndoHistory" 'DW
  17. sPCheck="HKCU\Software\Microsoft\Office\9.0\"
  18. Sub Plugin_Initialize 
  19. if RegPathExists(sPCheck) then
  20.  s=RegReadValue(sV1)
  21.  Call SetUIElement(1,s)
  22. else
  23.  Call Disable()
  24. end if
  25. End Sub
  26.  
  27. Sub Plugin_CheckData(ElementIndex)
  28. End Sub
  29.  
  30. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  31.  s=GetUIElement(1)
  32.  if len(s)>0 then
  33.     Call RegWriteValue(sV1,s,2)
  34.  else
  35.     s=RegReadValue(sV1)
  36.     if IsEmpty(s)=false then
  37.        Call RegDeleteValue(sV1)
  38.     end if
  39.  end if
  40.  
  41.  Call Logoff
  42. End Sub
  43.  
  44.  
  45. Sub Plugin_Terminate 
  46. End Sub
  47.  
  48.  
  49.  
  50.